﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="LisenceList.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.MasterData.LisenceList" Title="医用耗材管理系统" %>
<%@ Import Namespace="System.Data" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server"> 
 <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
 <script src="../../js/jquery.flexselect.js" type="text/javascript"></script>
 <script src="../../js/liquidmetal.js" type="text/javascript"></script>
 <script type="text/javascript">
      $(document).ready(function() {
        $("select[class*=flexselect]").flexselect();
        
         $('#<%=ddlProduct.ClientID %>_flexselect').blur(function() 
        {var tt = $('#<%=ddlProduct.ClientID %>_flexselect').attr('value');

            if(tt!="")
            {
                 $('#<%=ddlProductHide.ClientID %>').setSelectedText(tt);
            
                 //触发onchang事件
                 $("#<%=ddlProductHide.ClientID %>").change();
            }
        })
        })
  </script>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td class="right-color">资质列表</td>
        <td height="25" align="right" class="longbutton"><a href="LisenceAdd.aspx">新建资质</a></td>
        </tr>
    </table>
             
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:14px;">
        <tr>
            <td class="bor bor-bg">资质查询条件</td>
        </tr>
        <tr>
        <td class="bor">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t1">
        <tr>
            <td align="right">产品名称：</td>
            <td>
                <asp:DropDownList ID="ddlProduct" runat="server" CssClass="flexselect" Width="230">
                </asp:DropDownList>
                <div style="display:none">
                <asp:DropDownList ID="ddlProductHide" runat="server" Width="160" AutoPostBack="True" OnSelectedIndexChanged="ddlProductHide_SelectedIndexChanged">
                </asp:DropDownList></div></td>
            <td align="right">规格型号：</td>
            <td><asp:DropDownList ID="ddlSpec" Width="225" runat="server" >
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right">供应商名称：</td>
            <td colspan="2"><asp:DropDownList ID="ddlSell" runat="server" Width="230" CssClass="flexselect">
                </asp:DropDownList></td>
            <td><asp:Button ID="btnCheck" runat="server" OnClick="ButSearchClick" Text="查询" CssClass="button" Width="57" Height="25"  /></td>
        </tr>
        </table>
        </td></tr></table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:14px;">
        <tr>
            <td class="bor bor-bg">资质列表</td>
        </tr>
        <tr>
            <td class="bor" style="padding:13px;">
                <%--<asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                        <div class="header" id="header">
                            Northwind Employees</div>
                    </HeaderTemplate>
                    <SeparatorTemplate>
                        <hr />
                    </SeparatorTemplate>
                    <ItemTemplate>
                        <div class="row">
                            <%# ((DataRowView)Container.DataItem)["FirstName"] %>
                            <%# ((DataRowView)Container.DataItem)["LastName"] %>
                            <br>
                            <%# ((DataRowView)Container.DataItem)["Address"] %>
                            <br>
                            <%# ((DataRowView)Container.DataItem)["City"] %>
                            ,
                            <%# ((DataRowView)Container.DataItem)["Region"] %>
                            <%# ((DataRowView)Container.DataItem)["PostalCode"] %>
                            <br>
                            <%# ((DataRowView)Container.DataItem)["HomePhone"] %>
                        </div>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <div class="alternate">
                            <%# ((DataRowView)Container.DataItem)["FirstName"] %>
                            <%# ((DataRowView)Container.DataItem)["LastName"] %>
                            <br>
                            <%# ((DataRowView)Container.DataItem)["Address"] %>
                            <br>
                            <%# ((DataRowView)Container.DataItem)["City"] %>
                            ,
                            <%# ((DataRowView)Container.DataItem)["Region"] %>
                            <%# ((DataRowView)Container.DataItem)["PostalCode"] %>
                            <br>
                            <%# ((DataRowView)Container.DataItem)["HomePhone"] %>
                        </div>
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                        <div class="footer">
                            <%# ((DataView)Repeater1.DataSource).Count + " employees found." %>
                        </div>OnRowDataBound="gvLicense_RowDataBound" 
                    </FooterTemplate>
                </asp:Repeater>--%>
                <asp:GridView ID="gvLicense" Width="100%" runat="server" AutoGenerateColumns="False"   OnRowDeleting="gvLicense_RowDeleting" DataKeyNames="License_ID" CellPadding="4" AllowPaging="true"  OnPageIndexChanging="gvLicense_PageIndexChanging" PageSize="10">
                 <RowStyle CssClass="gv-first-line"/>
                 <EmptyDataTemplate>
            <table width="100%" height="100">
                
                <tr>
                    <td align="center" class="jg">
                        对不起，没有校验信息
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
                    <Columns>
                      <%--  <asp:BoundField DataField="ITEM_NAME" HeaderText="单位类型" />
                        <asp:BoundField DataField="SELLNAME"  HeaderText="单位名称" />
                        <asp:BoundField DataField="LICENSE_NAME" HeaderText="经营许可证" />
                        <asp:BoundField DataField="LICENSE_CODE" HeaderText="产品注册号" />
                        <asp:BoundField DataField="PARENTNAME" HeaderText="授权单位" />
                        <asp:BoundField DataField="EXPIRE_DATE" HeaderText="有效期" />
                        <asp:BoundField HeaderText="产品信息号" />
                        <asp:BoundField HeaderText="授权单位类型" />--%>
                        <asp:BoundField DataField="ITEM_NAME" HeaderText="单位类型" />
                        <asp:BoundField DataField="SELLNAME"  HeaderText="单位名称" />
                        <asp:BoundField DataField="license_name" HeaderText="经营许可证" />
                        <asp:BoundField DataField="License_Code" HeaderText="产品注册号" />
                        <asp:BoundField DataField="FACTORYNAME" HeaderText="授权单位" />
                        <asp:BoundField DataField="ITEM_NAME" HeaderText="授权单位类型" />
                        <asp:BoundField DataField="EXPIRE_DATE" HeaderText="有效期" />
                        <asp:BoundField DataField="INFO_ID" HeaderText="产品信息号" />
                        <asp:BoundField DataField="EXP_NAME" HeaderText="商品名称" />
                        <asp:BoundField DataField="SPECS" HeaderText="商品名称" />
                        <asp:TemplateField HeaderText="详细">
                          <ItemTemplate>
                         <table width="57" border="0" cellspacing="0" cellpadding="0" align="center">
                              <tr>
                                <td height="25" align="center" class="button" style="padding-top:2px;">
                                 <a href="<%#"LisenceAdd.aspx?license_id="+Eval("license_id") %>">详细</a>
                                </td>
                              </tr>
                         </table>
                          </ItemTemplate>
                          </asp:TemplateField>
                               <asp:TemplateField HeaderText="删除">
                                  <ItemTemplate>
                                  <table width="57" border="0" cellspacing="0" cellpadding="0" align="center">
                                      <tr>
                                        <td> 
                                          <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('确认要删除吗？');" 
                                              Text="删除"  CssClass="button1" width="57" height="25"></asp:LinkButton>
                                          </td>
                                      </tr>
                                  </table>
                                      </ItemTemplate>
                                  </asp:TemplateField>
     
                    </Columns>
                     <PagerStyle CssClass="fy" />
                      <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                      <HeaderStyle  CssClass="gv-head" />
                      <EditRowStyle BackColor="#2461BF" />
                      <AlternatingRowStyle BackColor="White" />
                      <PagerSettings Mode="NumericFirstLast" FirstPageText="首页" LastPageText="末页"/>
                </asp:GridView>
                
                </td>
        </tr>

    </table>
</asp:Content>

